package game.action;

import com.msg.MsgMain;
import com.msg.MsgRole;
import game.Client;

/**
 * 测试示例
 */
public class TestAction extends ActionBase {

    public TestAction() {
        super(5000, 10000);
    }

    @Override
    public void action(Client client) {
        MsgMain.MainProtocl.Builder msg = MsgMain.MainProtocl.newBuilder();
        msg.setMessageType(MsgMain.MessageType.CS_RoleLogin);
        MsgRole.CSRoleLogin.Builder msgData = MsgRole.CSRoleLogin.newBuilder();
        msg.setCSRoleLogin(msgData);
        client.sendMsg(msg);
    }
}
